<div class="view">

	<b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b>
	<?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id'=>$data->id)); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('title')); ?>:</b>
	<?php echo CHtml::encode($data->title); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('url')); ?>:</b>
	<?php echo CHtml::encode($data->url); ?>
	<br />


</div>

<div id="articles">
	<?php if($data->articleCount>=1): ?>
		<h3>
		<?php echo $data->articleCount>1 ? "共".$data->articleCount . '篇文章' : '一篇文章'; ?>
		</h3>

		<?php 
		    $this->renderPartial('_article',array(
			'classify'=>$data, //$data是classify的实例。
			'articles'=>$data->articles, //articles是关联模型， 获取data实例里的articles属性，即文章列表
		)); ?>
	<?php endif; ?>